@extends('common.base-master')

@section('html-head')
    <link rel="stylesheet" type="text/css" href="{{url('css/bootstrap.min.css')}}">
    <link href="{{url('css/project-info.css')}}" type="text/css" rel="stylesheet"/>
    <script src="{{url('js/project-info.js')}}"></script>

    <script src="{{url('js/lib/district.unit.js')}}"></script>

    <link href="{{url('js/lib/time/bootstrap-datepicker.css')}}" type="text/css" rel="stylesheet"/>
    <script src="{{url('js/lib/time/bootstrap-datepicker.js')}}"></script>
@endsection

@section('html-body')
    <main>
        <div class="wrapp">
            <div class="contain">
                <section class="cre-pro">
                    <h1>项目信息</h1>
                    <input type="hidden" id="province" value="{{$project->province}}" />
                    <input type="hidden" id="city" value="{{$project->city}}" />
                    <div class="table-box">
                        <ul>
                            <form name="creator">
                            <li><em class="pro-name"><em class="c-m">*</em><em class="c-name">公司名称</em></em><em class="c-i"><input type="text" class="commpany_name" value="@if($project){{$project->company_name}} @endif" /></em></li>
                            <li><em class="error c-e-1">123</em></li>
                            <li class="c-area"><em class="pro-name"><em class="c-m">*</em><em class="c-name">公司网址</em></em><em class="c-i"><input type="text" placeholder="网址请以'http://'开头" value="{{$project_url->url_name}}" /></em></li>
                            <li><em class="error c-e-2">123</em></li>
                            <li class="address"><em class="pro-name"><em class="c-m">*</em><em class="c-name">所在地区</em></em>
						<span>
							 <select name="province" onChange = "select()"></select> -
                             <select name="city" onChange = "select()"></select>
						</span>
                            </li>
                            <li class="found"><em class="pro-name"><em class="c-m">*</em><em class="c-name">成立时间</em></em>
							 <div class="cre-box">
                                 <p id="dateOnlyExample">
                                     <input type="text" name="work_start_time" placeholder="请选择开始时间" class="date start" value="{{$project->create_time}}" />
                                 </p>
                             </div>
                            </li>
                            <li><em class="pro-name"><em class="c-m">*</em><em class="c-name">所属行业</em></em>
                                <div class="c-m-list">
                                    <ul>
                                        @foreach($fields as $field)
                                        <li><input type="checkbox" {{$field->checked}} />{{$field->field}}</li>
                                        @endforeach
                                    </ul>
                                </div>
                            </li>
                            <li class="team"><em class="pro-name"><em class="c-m">*</em><em class="c-name">团队信息</em></em>
                                <div class="t-box">
                                    @foreach($projectTeams as $project)
                                    <div class="dl-box">
								<span>
									<button class="edit_btn"></button>
									<button class="close_btn"></button>
								</span>
                                        <dl>
                                            <dt><a href="#"><img src="{{url('images/userphoto_5.png')}}" /></a></dt>
                                            <dd>
                                                <p><strong>张家界</strong></p>
                                                <p>创始人CEO</p>
                                            </dd>
                                        </dl>
                                    </div>
                                    <div class="dl-box">
								<span>
									<button class="edit_btn"></button>
									<button class="close_btn"></button>
								</span>
                                        <dl>
                                            <dt><a href="#"><img src="{{url('images/userphoto_5.png')}}" /></a></dt>
                                            <dd>
                                                <p><strong>张家界</strong></p>
                                                <p>创始人CEO</p>
                                            </dd>
                                        </dl>
                                    </div>
                                    <div class="dl-box add-box">
                                        <button class="add_btn">添加您的团队成员</button>
                                    </div>
                                </div>
                                <div class="add_team_table">
                                    <div class="table-head">
                                        <p>添加您的团队成员</p>
                                        <p class="user_photo"><img src="{{url('images/userphoto_5.png')}}" /></p>
                                    </div>
                                    <div class="table-body">
                                        <ul>
                                            <li><input type="text" placeholder="姓名" class="member_name"/></li>
                                            <li><em class="error mem_err" style="display: none;"></em></li>
                                            <li>
                                                <select>
                                                    <option>CEO 创始人</option>
                                                    <option>CEO 创始人</option>
                                                    <option>CEO 创始人</option>
                                                </select>
                                                <select>
                                                    <option>创业者</option>
                                                    <option>创业者</option>
                                                    <option>创业者</option>
                                                </select>
                                                <input type="text" placeholder="如：市场/产品/运营" class="role"/>
                                            </li>
                                            <li><em class="error role_err" style="display: none;"></em></li>
                                            <li><input type="text" placeholder="毕业学校" /></li>
                                            <li>
                                                <textarea placeholder="成员简介，请在1000字以内" class="desc"></textarea>
                                            </li>
                                            <li><em class="error desc_err" style="display: none;"></em></li>
                                            <li><input type="text" placeholder="微信" /></li>
                                            <li><input type="text" placeholder="新浪微博" /></li>
                                            <li><input type="text" placeholder="脉脉" /></li>
                                            <li class="btn_box"><button class="add">添加</button><button class="close_">取消</button></li>
                                        </ul>
                                    </div>
                                </div>
                            </li>
                            <li class="landmark"><em class="pro-name"><em class="c-m">*</em><em class="c-name">里程碑</em></em>
                                <div class="land-box">
                                    <div class="dl-box">
                                        <div>
                                            <time>2014/12</time>
                                            <p>
                                                超交易WEB版本上线超交易WEB版本上线超交易WEB版本上线
                                            </p>
                                        </div>
                                    </div>
                                    <div class="dl-box">
                                        <div>
                                            <time>2014/12</time>
                                            <p>
                                                超交易WEB版本上线超交易WEB版本上线超交易WEB版本上线
                                            </p>
                                        </div>
                                    </div>
                                    <div class="dl-box add-land">
                                        <button class="add_btn">添加您的里程碑</button>
                                    </div>
                                </div>
                                <div class="add_landmark_table">
                                    <p>添加您的里程碑</p>
                                    <div>
                                        <select class="year">
                                            <option>2015年</option>
                                            <option>2015年</option>
                                            <option>2015年</option>
                                        </select>
                                        <select class="month">
                                            <option>1月</option>
                                            <option>1月</option>
                                            <option>1月</option>
                                        </select>
                                        <p><textarea placeholder="填写里程碑，请在50字以内"></textarea></p>
                                        <p class="error landmark_err" style="display: none;"></p>
                                        <p>
                                            <button class="add_btn">添加</button>
                                            <button class="close_btn">取消</button>
                                        </p>
                                    </div>
                                </div>
                            </li>
                            <li class="c-next"><button>保存</button></li>
                            </form>
                        </ul>
                    </div>
                </section>
            </div>
        </div>
        <div class="mirror"></div>
    </main>
@endsection